package com.example.travel_front.Model;

public class Traveler {
    private String name;
    private String avatarUrl; // 头像图片的URL
    private int discoveries;
    private int likes;

    // 构造函数
    public Traveler(String name, String avatarUrl, int discoveries, int likes) {
        this.name = name;
        this.avatarUrl = avatarUrl;
        this.discoveries = discoveries;
        this.likes = likes;
    }

    // Getter和Setter
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public int getDiscoveries() {
        return discoveries;
    }

    public void setDiscoveries(int discoveries) {
        this.discoveries = discoveries;
    }

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }

    // 可以根据需要添加其他方法
}
